import request from '@/utils/request'

// 订单管理---订单多条件分页查询
export function orderList(query) {
  return request({
    url: '/jbl-order/api/merchant/v1/order/select/page',
    method: 'get',
    params: query
  })
}

// 订单管理---订单导出excel
export function orderExport(query) {
  return request({
    url: '/jbl-order/api/merchant/v1/order/export',
    method: 'get',
    params: query
  })
}

// 订单核销-----根据订单码核销订单
export function writeOffOrder(query) {
  return request({
    url: '/jbl-order/api/merchant/v1/order/writeOffOrder',
    method: 'get',
    params: query
  })
}

// 修改订单备注
export function updateById(query) {
  return request({
    url: '/jbl-order/api/merchant/v1/order/updateById',
    method: 'post',
    data: query
  })
}

// 修改订单备注
export function orderDetail(query) {
  return request({
    url: '/jbl-order/api/merchant/v1/order/detail',
    method: 'get',
    params: query
  })
}

// 查看团员
export function groupMembers(query){
  return request({
    url:'jbl-activity-group/api/merchant/v1/activityGroupJoin/selectByConditions',
    method:'get',
    params:query
  })
}

// 查看某个团成员
export function groupDetail(query){
  return request({
    url:'/jbl-activity-group/api/mobile/v1/activityGroupJoin/selectByConditions',
    method:'get',
    params:query
  })
}
